package com.sais.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 宿舍管理系统-基础baseEntity 实体类
 *
 * @author zhang
 * @date 2019/11/30
 **/
@Data
@ToString
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 默认自增序列
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime gmtModified;

}
